package org.misalen.web.database.model.mysql.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 字典
 * 
 * @author guochao
 *
 */
@Entity
@Table(name = "SysWordbookItem")
@DynamicInsert(true)
@DynamicUpdate(true)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@JsonIgnoreProperties({ "addTime","wordbookId","primaryKey" })
public class SysWordbookItem extends BaseSqlModel {

	@ModelComment("字典id")
	@Column(name = "wordbookId")
	private String wordbookId;

	@ModelComment("字典数据名称")
	@Column(name = "itemName", length = 50, nullable = false)
	private String itemName;

	@ModelComment("字典数据编码")
	@Column(name = "itemCode", length = 50, nullable = false)
	private String itemCode;

	public String getWordbookId() {
		return wordbookId;
	}

	public void setWordbookId(String wordbookId) {
		this.wordbookId = wordbookId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

}
